package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.ChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;

public interface WmChannelService extends IService<WmChannel> {

    /**
     *  查询所有频道
     * @param :
     * @return ResponseResult
     */
   public ResponseResult findAll();

    /**
     * 频道名称模糊分页查询
     * @param dto:
     * @return ResponseResult
     */
    ResponseResult findByNameWithPage(ChannelDto dto);

    /**
     * 新增频道
     * @param wmChannel:
     * @return ResponseResult
     */
    ResponseResult insert(WmChannel wmChannel);

    /**
     * 修改频道
     * @param wmChannel:
     * @return ResponseResult
     */
    ResponseResult update(WmChannel wmChannel);

    /**
     * 删除频道
     * @param id:
     * @return ResponseResult
     */
    ResponseResult delete(Integer id);

}